Comments() as $Comment) { Blog_PrintComment($Comment); } } /** * Print a comment. * @param Message $Comment Comment to print. */ function Blog_PrintComment(Message $Comment): void { # retrieve user currently logged in $User = User::getCurrentUser(); $Blog = $GLOBALS["G_PluginManager"]->GetPluginForCurrentPage(); $Author = new User(intval($Comment->PosterId())); $CanEditComment = $Blog->UserCanEditComment($User, $Comment); $CanDeleteComment = $Blog->UserCanDeleteComment($User, $Comment); $CanEditUsers = $Blog->UserCanEditUsers($User); # encode values for HTML output $SafeCommentId = defaulthtmlentities($Comment->MessageId()); $SafeBody = nl2br(trim(defaulthtmlentities($Comment->Body()))); $SafeEntryId = defaulthtmlentities($Comment->ParentId()); $SafePosterId = defaulthtmlentities($Author->Id()); $SafePosterName = defaulthtmlentities($Author->GetBestName()); $SafePostedDate = preg_replace( "/at /", "
at ", defaulthtmlentities(StdLib::getPrettyTimestamp($Comment->DatePosted(), true)) ); $SafePostedDateForParsing = defaulthtmlentities( Blog_FormatTimestampForParsing($Comment->DatePosted()) ); ?>

Id()); ?> Add a Comment

Views |
Shared via E-mail |
Shared to Facebook |
Shared to Twitter |
Shared to LinkedIn |

UserCanPostComment($User); $CanViewMetrics = $H_Blog->UserCanViewMetrics($User); $IsLoggedIn = $User->IsLoggedIn(); $Blog = $GLOBALS["G_PluginManager"]->GetPluginForCurrentPage(); if ($H_State == "OK" || $H_State == "Not Email Blog") { $SafeId = defaulthtmlentities($H_Entry->Id()); $SafeUrl = defaulthtmlentities($H_Entry->EntryUrl()); $SafeTitle = $H_Entry->TitleForDisplay(); $SafeAuthor = defaulthtmlentities($H_Entry->AuthorForDisplay()); $SafeEditor = defaulthtmlentities($H_Entry->EditorForDisplay()); $SafeCreationDate = defaulthtmlentities($H_Entry->CreationDateForDisplay()); $SafeModificationDate = defaulthtmlentities($H_Entry->ModificationDateForDisplay()); $SafePublicationDate = defaulthtmlentities($H_Entry->PublicationDateForDisplay()); $SafePublicationDatePrefix = defaulthtmlentities($H_Entry->PublicationDateDisplayPrefix()); $SafePublicationDateForParsing = defaulthtmlentities($H_Entry->PublicationDateForParsing()); $Body = $H_Entry->get("Body"); $Categories = $H_Entry->CategoriesForDisplay(); $BlogName = $H_Entry->BlogName(); $BlogUrl = $Blog->BlogUrl(); $NotificationsEnabled = $H_Blog->NotificationsCouldBeSent(); $UserIsLoggedIn = $User->IsLoggedIn(); $UserIsSubscribed = $H_Blog->UserIsSubscribedToNotifications($User); $DisplayNotificationButton = $H_Blog->NotificationsCouldBeSent(null, $User); $NotificationButtonEnabled = $H_Blog->NotificationsCouldBeSent($H_Entry, $User); $EntryFromEmailBlog = ($H_Entry->GetBlogId() == $H_Blog->ConfigSetting( "EmailNotificationBlog" )); PageTitle(strip_tags($H_Entry->TitleForDisplay())); } else { PageTitle("Blog Entry Not Found"); } ?>

- Cannot send notifications for this blog entry because it is not the configured Email Blog

#

Unsubscribe Subscribe UserCanEdit($User)) { ?> Notify Subscribers Notify Subscribers Notify Subscribers gUIFile("Pencil.svg") ?>" alt="Edit blog entry" />Edit SignalEvent( "EVENT_HTML_INSERTION_POINT", [ $GLOBALS["AF"]->GetPageName(), "Resource Display Buttons", ["Resource" => $H_Entry] ] ); ?>

Posted ShowAuthor()) { ?> by .

Categories:

From:

ModificationDate()) > (strtotime($H_Entry->PublicationDate()) + 3600)) { ?>

Last Edited: ModificationDate(), true) ); if ($H_Blog->ShowAuthor()) { ?> by AuthorForDisplay()).""; } print "

"; } ?>
GetPlugin("SocialMedia")->DisplayShareButtons($H_Entry); ?>
See More

# Metrics

EnableComments()) { ?>

# Comments

NumberOfComments() > 0) { ?> Log in to post a comment.

There are no comments yet for this entry. Please Log In to post one.

# Blog Entry Not Found

The blog entry could not be found.Please contact the administrator if you believe this is an error.